package com.hyacinth.lotterysystem.dto.resp;

import com.hyacinth.lotterysystem.dto.param.ActivityDetailCachePrizeParam;
import com.hyacinth.lotterysystem.dto.param.ActivityDetailCacheUserParam;
import com.hyacinth.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;

import java.util.List;

@Data
public class ActivityDetailCacheResp {
    private Long activityId;
    private String activityName;
    private String description;
    private ActivityStatusEnum status;
    public List<ActivityDetailCachePrizeParam> prizeParamList;
    public List<ActivityDetailCacheUserParam> userParamList;


    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }
}
